/* model */
import Field from "@model/entity/Field";
/* util */
import { randomString } from 'pub-bbx-utils';

const FormTitleSettingTitleNameField: Field = {
  defaultValue: null,
  displayName: "标题名称",
  fieldName: "titleName",
  formType: "text",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 0,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  maxlength: 100,
  placeHolder: "建议100字以内",
  setting: {},
}

const FormTitleSettingDescriptionField: Field = {
  defaultValue: null,
  displayName: "描述内容",
  fieldName: "description",
  formType: "textarea",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 1,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  maxlength: 500,
  placeHolder: "请输入内容，最多500字",
  setting: {},
}

const FormTitleSettingLayoutField: Field = {
  defaultValue: null,
  displayName: "布局",
  fieldName: "layout",
  formType: "style",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 1,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "",
  setting: {},
}

const FormTitleSettingTitleStyleField: Field = {
  defaultValue: null,
  displayName: "标题样式",
  fieldName: "titleStyle",
  formType: "style",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 1,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "",
  setting: {},
}

const FormTitleSettingDescriptionStyleField: Field = {
  defaultValue: null,
  displayName: "描述样式",
  fieldName: "descriptionStyle",
  formType: "style",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 1,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "",
  setting: {},
}

const FormTitleSettingBackgroundColorField: Field = {
  defaultValue: null,
  displayName: "背景颜色",
  fieldName: "backgroundColor",
  formType: "style",
  guideProfessions: [],
  id: randomString(),
  isDelete: 0,
  isGuideData: false,
  isNull: 1,
  isSearch: 0,
  isSystem: 0,
  orderId: 0,
  placeHolder: "",
  setting: {},
}

export {
  FormTitleSettingTitleNameField,
  FormTitleSettingDescriptionField,
  FormTitleSettingTitleStyleField,
  FormTitleSettingDescriptionStyleField,
  FormTitleSettingBackgroundColorField,
  FormTitleSettingLayoutField
}

export default {
  FormTitleSettingTitleNameField,
  FormTitleSettingDescriptionField,
  FormTitleSettingTitleStyleField,
  FormTitleSettingDescriptionStyleField,
  FormTitleSettingBackgroundColorField,
  FormTitleSettingLayoutField
}